<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>奋青网--致力于创造无悔的青春！</title>
<link href="css/Entrance.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/Jquery-1-5-2.js"></script>
<script type="text/javascript" src="js/Entrance.js"></script>
<script>
	var re = new RegExp(/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/) ;
	function check(){
		if(!re.test(document.form2.uemail.value)){
			alert('邮箱格式不正确');
			return false ;
		}
		if(document.form2.uemail.value==""){
			alert('邮箱不得为空');
			return false ;
		}
		if(document.form2.upassword.lenth<5){
			alert('密码不得低于5位!');
			return false ;
		}
		if(document.form2.upassword2.value!=document.form2.upassword.value){
			alert('前后密码不一致');
		}
		if(document.form2.uname.value==""){
			alert('姓名不得为空');
			return false ;
		}
		if(document.form2.uage.value<0||document.form2.uage.value>80 || isNaN(document.form2.uage.value)){
			alert('年龄有误');
			return false ;
		}
		if(document.form2.uschool.value==''||document.form2.ucareer.value==''){
			alert('学校和专业不得为空');
			return false ;
		}
		return true ;
	}
</script>
</head>
<body>
<div class="Entrance_Box">
<a href=""><img src="images/LOGO_box.jpg"/></a>
<div class="Entrance_Box_Top"></div>
<div class="Entrance_Box_Middle">
<div id="Login_Box">
<p class="Entrance_Title"><span class="Entrance_Change">还没有账号？</span>用户登录</p>
<div class="Title_Line"></div>
<form action="LoginServlet" method="post" name="form1">
<div class="Form_Title"/>注册邮箱：</div><input type="text" name="uemail" class="Entrance_Input"/><br/>
<div class="Form_Title"/>密码：</div><input type="password" name="upassword" class="Entrance_Input"/><br/>
<div class="Form_Title"/></div><input type="hidden"  name="status" value="login"/><br/>
<div class="Entrance_Forget"/>忘记密码？</div>
<input type="submit" class="Entrance_Button" value="登录"/>
</form>
</div>
<div id="Reg_Box" style="display:none;">
<p class="Entrance_Title"><span class="Entrance_Change">已有账号？</span>注册新账号</p>
<div class="Title_Line"></div>
<img src="images/reg_step.jpg" class="Reg_Step"/>
<form action="LoginServlet" method="post" onSubmit="return check();" name="form2">
<div class="Form_Title">登录邮箱：</div><input type="text" name="uemail" class="Entrance_Input" onBlur="isEmail(form.uemail.value)"/><div class="Input_Info"></div><br/>
<div class="Form_Title">密码：</div><input type="password" name="upassword" class="Entrance_Input"/><div class="Input_Info"></div><br/>
<div class="Form_Title">确认密码：</div><input type="password" name="upassword2" class="Entrance_Input"/><div class="Input_Info"></div><br/>
<div class="Form_Title">真实姓名：</div><input type="text" name="uname" class="Entrance_Input"/><div class="Input_Info"></div><br/>
<div class="Form_Title">性别/年龄：</div><input type="radio" name="usex" value="男" checked="true"/>男&nbsp;<input type="radio" name="usex" value="女" class="Entrance_Radio"/>女&nbsp;/&nbsp;<input type="text"  name="uage" class="Entrance_Input" style="width:80px;"/>&nbsp;岁<div class="Input_Info"></div><br/>
<div class="Form_Title">就读学校：</div><input type="text" class="Entrance_Input" name="uschool"/><div class="Input_Info"></div><br/>
<div class="Form_Title">所学专业：</div><input type="text" class="Entrance_Input" name="ucareer"/><div class="Input_Info"></div><br/>
<div class="Form_Title">一句话介绍：</div><input type="text" class="Entrance_Input" name="uinfo"/><div class="Input_Info"></div><br/>
<div class="Form_Title">安全问题：</div><input type="text" class="Entrance_Input" name="usafe"/><div class="Input_Info"></div><br/>
<div class="Form_Title">问题答案：</div><input type="text" class="Entrance_Input" name="uanswer"/><div class="Input_Info"></div><br/>
<div class="Form_Title"></div><input type="hidden" name="status" value="index" class="Entrance_Input"/><br/>
<input type="submit" class="Entrance_Button" value="申请账号"/>
</form>
</div>
</div>
<div class="Entrance_Box_Bottom"></div>
</div>
</body>
</html>
